package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ChtjDescBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ChtjDescService extends BaseService<ChtjDescBean> {

	ChtjDescBean getChtjDescBeanById(String id) throws Exception;
	
	void removeChtjDescBeanById(String id) throws Exception;
	
	void removeChtjDescBeanByIds(String ids) throws Exception;
	
	ChtjDescBean saveChtjDescBean(ChtjDescBean crm) throws Exception;
	
	ChtjDescBean updateChtjDescBean(ChtjDescBean crm) throws Exception;
	
	Page<ChtjDescBean>  findChtjDescBeanByCond(ChtjDescBean bean,
			Page<ChtjDescBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveChtjDescBeanExt(String sql) throws Exception;

	String findChtjDescBeanExtCreate(String tableName) throws Exception;

	String findChtjDescBeanExtEdit(String tableName, String id)
			throws Exception;

	String findChtjDescBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasChtjDescBeanExtData(String tableName, String id)
			throws Exception;
}